import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { VueAxios } from './utils/request'
import VueCompositionAPI from '@vue/composition-api'

Vue.use(VueCompositionAPI)

import './utils/filter' // global filter

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
import { Lazyload } from 'vant';
Vue.use(Lazyload);

import ImgDomin from '@/config'
Vue.prototype.ImgDomin = ImgDomin

import loadingCover from '@/components/loading-cover.vue';
Vue.component('loading-cover', loadingCover);

Vue.config.productionTip = false

// mount axios to `Vue.$http` and `this.$http`
Vue.use(VueAxios)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
